package Expe6;

/**
 * @Author 28021
 * @Date 2022/9/27
 */
public class TestC {
    public static void main(String[] args) {
        Car c = new Car(50);
        System.out.println("初始油量为："+c.fuelAmount);
        fuelTank t = new fuelTank();
        System.out.println("开始耗油");
        t.run(c);
        System.out.println("目前油量为："+c.fuelAmount);
    }
}
